package com.iceclean.po;

/**
 * @author : Ice'Clean
 * @date : 2021-05-09
 *
 * 消息实体类
 */
public class Message {
    private Integer senderId;
    private Integer receiverId;
    private Integer messageId;
    private String messageContent;
    private String messageHref;
    private Integer messageClass;
    private String createDate;

    public Message() {
    }

    public Message(Integer senderId, Integer receiverId, String messageContent, Integer messageClass) {
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.messageContent = messageContent;
        this.messageClass = messageClass;
    }

    public Message(Integer senderId, Integer receiverId, String messageContent, String messageHref, Integer messageClass) {
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.messageContent = messageContent;
        this.messageHref = messageHref;
        this.messageClass = messageClass;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public void setMessageHref(String messageHref) {
        this.messageHref = messageHref;
    }

    public void setMessageClass(Integer messageClass) {
        this.messageClass = messageClass;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public Integer getSenderId() {
        return senderId;
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public Integer getMessageId() {
        return messageId;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public String getMessageHref() {
        return messageHref;
    }

    public Integer getMessageClass() {
        return messageClass;
    }

    public String getCreateDate() {
        return createDate;
    }

    @Override
    public String toString() {
        return "Message{" +
                "senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", messageId=" + messageId +
                ", messageContent='" + messageContent + '\'' +
                ", messageClass=" + messageClass +
                ", createDate='" + createDate + '\'' +
                '}';
    }
}
